package com.fyyg.service;

import com.fyyg.dal.TSysRoleResourceMapper;
import com.fyyg.interfaces.TSysRoleResourceService;
import com.fyyg.model.TSysRoleResource;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("sysRoleResourceService")
public class TSysRoleResourceServiceImpl implements TSysRoleResourceService{
	
	@Resource
	private TSysRoleResourceMapper roleResourceMapper;

	@Override
	public int deleteByRoleId(Integer roleId) {
		return roleResourceMapper.deleteByRoleId(roleId);
	}

	@Override
	public int insert(TSysRoleResource roleResource) {
		return roleResourceMapper.insert(roleResource);
	}

}
